package com.hnevc.caoliuye;

public class homework03 {
    public static void main(String[] args) {
        int i;
        int a, b, c;
        a = 0;
        b = 0;
        c = 0;
        for (i = 100; i < 1000; i++) {
            a = i % 10;//个
            b = i / 10 % 10;//十
            c = i / 100 % 10;//百
            if ((a * a * a + b * b * b + c * c * c) == i)//条件


                System.out.println(i);
        }
    }

}
